package com.leadingsoft.pwxk.services.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.leadingsoft.pwxk.model.TZRecord;
import com.leadingsoft.pwxk.repository.TZRecordRepository;
import com.leadingsoft.pwxk.services.AbstractService;

/**
 * 
 * @author ysh
 * @desc 审批信息-环境管理台账记录要求-服务类
 */

@Service
public class TZRecordServiceImpl extends AbstractService<TZRecord> {

	@Autowired
	TZRecordRepository tZRecordRepository;

	@Override
	public void saveAll(List<TZRecord> models) {
		tZRecordRepository.saveAll(models);

	}

	@Override
	public void deleteAll() {
		tZRecordRepository.deleteAll();
	}

	@Override
	public void save(TZRecord model) {
		tZRecordRepository.save(model);
	}

}